import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
const TIMEKEY = 'setTime'

// token
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(data) {
  return Cookies.set(TokenKey, data)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
// 时间撮
export function setTime() {
  return Cookies.set(TIMEKEY,Date.now())
}
export function getTime() {
 return Cookies.get(TIMEKEY)
}
export function removTime() {
  Cookies.remove(TIMEKEY)
}